﻿//using XXN.Model;
//using System;
//using System.Collections.Generic;
//using System.Linq;
//using System.Text;
//using System.Threading.Tasks;

//namespace XXN.Service
//{
//    internal class CategoryServer
//    {
//        private Shopping_MallEntities db = new Shopping_MallEntities();

//        /// <summary>
//        /// 类别表
//        /// </summary>
//        /// <param name="page"></param>
//        /// <param name="limit"></param>
//        /// <param name="count"></param>
//        /// <param name="Name"></param>
//        /// <returns></returns>
//        ///  public List<CategoryUI> GetCategories(int page, int limit, out int count, string Name)
//        {
//            private var Cat = from item in db.Category.Where(x => true)
//                              select new CategoryUI
//                              {
//                                  Category_id = item.Category_id,
//                                  Name = item.Name,
//                                  SuperclassId = item.SuperclassId,
//                                  Status = item.Status
//                              };

//            if (!string.private IsNullOrEmpty(Name))

//            {
//                Cat = Cat.Where(x => x.Name.Contains(Name));
//            }

//    count = Cat.Count();
//            Cat = Cat.OrderBy(x => x.Category_id);
//            Cat = Cat.Skip((page - 1) * limit).Take(limit);
//            return Cat.ToList();
//        }
//    }
//}